class T1 extends Thread{
    public void run(){
        int cnt=0;int i=0;
        while(cnt<=50){
            System.out.println("偶数"+i);
            i+=2;
            try{
                Thread.sleep(1000);
            }catch(InterruptedException e){}
        }
    }
}
class T2 extends Thread{
    public void run(){
        int cnt=0;int i=0;
        while(cnt<=50){
            System.out.println("奇数"+i);
            i+=1;
            try{
                Thread.sleep(1000);
            }catch(InterruptedException e){}
        } 
    }
}
public class Text {
    public static void main(String[] args) {
        T1 t1=new T1();
        T2 t2=new T2();
        t1.start();
        t2.start();
    }
}
